package com.newbingo.dao.imple;

import java.util.Date;
import java.util.List;

import com.newbingo.entity.BettingItem;
import com.newbingo.util.Pager;

public interface IBettingItemDao {

	public abstract void save(BettingItem bettingItem);

	public abstract void delete(BettingItem bettingItem);

	public abstract BettingItem merge(BettingItem bettingItem);

	public abstract BettingItem findById(Integer id);

	public abstract List<BettingItem> findAll();

	public abstract List<BettingItem> findByProperty(String propertyName,
			Object value);

	public abstract List<BettingItem> findByWin(boolean win);
	
	public abstract List<BettingItem> findBettingItemsByPeriodGame(Integer pgno);

	public abstract Pager findByPage(int start, int limit, Integer pgno,
			Date startTime, Date endTime);

	public abstract Pager findByMemeberId(int start, int limit, int memberId,
			String gameName, Date startTime, Date endTime);
	
	public abstract List findAgentReportByAgent(Integer agentId,String start);
	
	public abstract List<BettingItem> findBettingItemsByPeriodTime(Date start,Date end,Integer memberId,Integer gameId);
}